package com.antdesignbackend.backend.news.notice.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import lombok.Data;

/**
 * 公告管理
 *
 * @author 不二
 * @email notice
 * @date 2020-07-25 18:11:33
 */

@Data
@TableName(value = "t_notice")
public class Notice implements Serializable {
	private static final long serialVersionUID = 1L;

	@TableId(value = "Id",type = IdType.AUTO)
	private Integer id;

	//公告标题
	@TableField(value = "Title")
	private String title;
	//公告类别（0通知/1公告）
	@TableField(value = "Type")
	private Integer type;
	//通知内容
	@TableField(value = "Content")
	private String content;
	//创建人
	@TableField(value = "CreateUid")
	private Integer createUid;
	//创建时间
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@TableField(value = "CreateTime")
	private Date createTime;
	//通知角色
	@TableField(value = "Roles")
	private String roles;
	//公告日期
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	@JsonFormat(pattern = "yyyy-MM-dd")
	@TableField(value = "NoticeDate")
	private Date noticeDate;

	//权限地市
	@TableField(value = "AuthCity")
	private Integer authCity;
	//权限区县
	@TableField(value = "AuthDistrict")
	private Integer authDistrict;
	//权限乡镇
	@TableField(value = "AuthTown")
	private Integer authTown;
	//附件名称
	@TableField(value = "Enclosure")
	private String enclosure;
}
